Yes, the network has become a little slow. I just couldn't detect to see how slow it was.
However, these problems (error 10055: no buffer space; error 183:?) seemed to be known issues on windows 2000 platforms. The same codes run on windows XP did not cause these problems.
In general, I think these are network-related problems on windows 2000. I hope to be able to access the network buffer (mbufs) to clear/clean to see if the problems are resolved.
Hello friends! i am writing a code in which i take inputs (numbers) from user and count the total number of positive, negative and zeros entered. I need to clear my standard input buffer before scanf() command. My compiler is completely ignoring the fflush(stdin) command. its not even showing any... (1 Reply)
Hello everybody,
Years ago i left in stand-by a project of mine where the main program was supposed to send thousands ARP frames over the socket as fast as it could; but because of a programming issue i couldn't continue it.
2 days ago I decided to solve that issue.
The thing is, when the... (4 Replies)
:)Hi Solaris Experts,
I am wondering whether it is possible to clear a network socket port 17005 left by Apache Tomcat/6.0.20 after having to terminate it forcefully, since it has run away due to remote JDBC resource contention on another server. A normal Tomcat stop / shutdown proves... (2 Replies)
I'm running a ksh script that requires user interaction, and said users (myself among them) may get a little trigger happy and get ahead of ourselves and accidentally key in the wrong responses to future prompts in the script.
Naturally, I'd like to prevent that, so how does one clear that... (0 Replies)
Hi,
How can i clear the command. Suppose using esc k i retrieved teh command, but for some reason I want to clear and type fresh one... how can i do that.
thx (2 Replies)
Hi
I just want to clean up the space in UNIX. Is there any special command that does this process or do I need to manually type the following
rm <filename>
Any help would be really appreciated. Thanks (2 Replies)
Hello,
I am having trouble clearing the serial port buffer using the iclear and iflush commands. The code runs without errors being returned, but when I check the buffer again there is still data.
The only way I have so far is to read until there is nothing left in the buffer. Shouldn't one... (1 Reply)
Hi,
I need to check if the value returned by this query is bigger then 20000.
It's not working!
I think that the problem is that the return is with white spaces. How to solve this?
Tks,
Paulo Portugal.
#######################
RESPOSTA=`/oracle/app/product/10.2/bin/sqlplus -s <<EOF
/ as... (2 Replies)
Hi
I am trying to develop a script so that whenever used % reaches 90% it will send an alert mail. Following is the script whic I am tryiing to implement but it show some error.
code:
#! /bin/ksh
df -v | grep -i "/opt" | awk '{print $6}' > space
if ]
then
echo "ALERT YOUR SPACE IS TOO... (6 Replies)
socket(n) Tcl Built-In Commands socket(n)
__________________________________________________________________________________________________________________________________________________NAME
socket - Open a TCP network connection
SYNOPSIS
socket ?options? host port
socket -server command ?options? port
_________________________________________________________________DESCRIPTION
This command opens a network socket and returns a channel identifier that may be used in future invocations of commands like read, puts and
flush. At present only the TCP network protocol is supported; future releases may include support for additional protocols. The socket
command may be used to open either the client or server side of a connection, depending on whether the -server switch is specified.
CLIENT SOCKETS
If the -server option is not specified, then the client side of a connection is opened and the command returns a channel identifier that
can be used for both reading and writing. Port and host specify a port to connect to; there must be a server accepting connections on
this port. Port is an integer port number and host is either a domain-style name such as www.sunlabs.com or a numerical IP address such as
127.0.0.1. Use localhost to refer to the host on which the command is invoked.
The following options may also be present before host to specify additional information about the connection:
-myaddr addr
Addr gives the domain-style name or numerical IP address of the client-side network interface to use for the connection. This
option may be useful if the client machine has multiple network interfaces. If the option is omitted then the client-side interface
will be chosen by the system software.
-myport port
Port specifies an integer port number to use for the client's side of the connection. If this option is omitted, the client's port
number will be chosen at random by the system software.
-async The -async option will cause the client socket to be connected asynchronously. This means that the socket will be created immedi-
ately but may not yet be connected to the server, when the call to socket returns. When a gets or flush is done on the socket before
the connection attempt succeeds or fails, if the socket is in blocking mode, the operation will wait until the connection is com-
pleted or fails. If the socket is in nonblocking mode and a gets or flush is done on the socket before the connection attempt suc-
ceeds or fails, the operation returns immediately and fblocked on the socket returns 1.
SERVER SOCKETS
If the -server option is specified then the new socket will be a server for the port given by port. Tcl will automatically accept connec-
tions to the given port. For each connection Tcl will create a new channel that may be used to communicate with the client. Tcl then
invokes command with three additional arguments: the name of the new channel, the address, in network address notation, of the client's
host, and the client's port number.
The following additional option may also be specified before host:
-myaddr addr
Addr gives the domain-style name or numerical IP address of the server-side network interface to use for the connection. This
option may be useful if the server machine has multiple network interfaces. If the option is omitted then the server socket is
bound to the special address INADDR_ANY so that it can accept connections from any interface.
Server channels cannot be used for input or output; their sole use is to accept new client connections. The channels created for each
incoming client connection are opened for input and output. Closing the server channel shuts down the server so that no new connections
will be accepted; however, existing connections will be unaffected.
Server sockets depend on the Tcl event mechanism to find out when new connections are opened. If the application doesn't enter the event
loop, for example by invoking the vwait command or calling the C procedure Tcl_DoOneEvent, then no connections will be accepted.
CONFIGURATION OPTIONS
The fconfigure command can be used to query several readonly configuration options for socket channels: |
-error |
This option gets the current error status of the given socket. This is useful when you need to determine if an asynchronous connect |
operation succeeded. If there was an error, the error message is returned. If there was no error, an empty string is returned.
-sockname
This option returns a list of three elements, the address, the host name and the port number for the socket. If the host name cannot
be computed, the second element is identical to the address, the first element of the list.
-peername
This option is not supported by server sockets. For client and accepted sockets, this option returns a list of three elements; these
are the address, the host name and the port to which the peer socket is connected or bound. If the host name cannot be computed, the
second element of the list is identical to the address, its first element.
SEE ALSO
flush(n), open(n), read(n)
KEYWORDS
bind, channel, connection, domain name, host, network address, socket, tcp
Tcl 8.0 socket(n)