[Mpls-pm] Perl Socket programming problem with Windows
shamu112 at yahoo.com
Wed Aug 17 12:08:36 PDT 2005
Consult the Book of Armaments, chapter two, verses nine through twenty-one.
Read thy perldoc perlipc.
Incidentally, why 1024 in recv()?
On Wed, Aug 17, 2005 at 01:18:27PM -0500, Paul.Krcma at wellsfargo.com wrote:
> I'm writing a TCP Server program that polls waits for socket connections
> on a specified port. The connection will be coming from a "black box"
> test harness written in C#.Net. The connection hand-shake design is as
> Black Box requests to connect to the Server
> Server responds back with a "Challenge" with a hardcode string
> The Black Box reads the Challenge, then returns another request as
> The Server will then processes the second request.
> On my Server end, I can start the server and wait for connections. When
> the Client makes a request to the Server, the Server accepts the
> connections, but I can't read the data being sent. When I attempt to
> read the data stream on the Server, it wait about 5 seconds, then the
> Client hangs. I'm using IO::Socket and IO::Select, and I've tried read,
> recv, <>, Open(filehandle), all attempts result with the same error.
> The programmer for the Black Box side assures me that he is not putting
> any special end-of-line characters in his output string. I'm at a total
> loss for what is going on here. Any help would be appreciated.
> Paul Krcma
> CMI Client/Server (EISS)
More information about the Mpls-pm