2009/6/9 Octavian Râşniţă <orasn...@gmail.com>: > Hi, > > I need to create a TCP/IP client that connects to a server which accepts > messages made from 3 parts: > - a static start string of 9 bytes; > - the body (that can have a variable length) > - a static string of 9 bytes. > > ...and then it gives a response that I need to get. > > I've searched the CPAN for a higher level module that can help me to create > that client, but I couldn't find anything higher level than > IO::Socket::INET. > > Does anyone know a higher level module that can be used to create such a > TCP/IP client? snip
What could do what you want and be higher level? You aren't using a known protocol, so there will be no help there. All you are doing is connecting a server printing 9 bytes, a variable number of bytes, then another 9 bytes, and then reading a number of bytes from the server. You don't need any higher level of abstraction than a file handle (which is effectively what IO::Socket gives you). -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/