Hi Adam!

On Tue, 23 Aug 2022 02:31:14 +0000
Adam Russell via Boston-pm <[email protected]> wrote:

> I have some networking code in Perl. Fairly low level in that I use raw
> sockets, accept(), etc instead of the higher level IO::Socket package. I'd
> like to test this code but am not sure what the best approach is. There
> doesn't seem to be a convenient testing framework like there is with WWW
> testing. I guess I could use Expect and throw something together but that
> seems a bit clunky.
> 
> What I'd like to do is test client(s) connect to port XYZ, sending messages,
> and testing the output returned. Sounds simple enough but it isn't clear how
> to proceed in anything other than a kind of ad hoc way with Expect or
> whatever. Any advice?

see https://perl-begin.org/uses/multitasking/#event_frameworks .

HTH.

> 
> _______________________________________________
> Boston-pm mailing list
> [email protected]
> https://mail.pm.org/mailman/listinfo/boston-pm



-- 

Shlomi Fish       https://www.shlomifish.org/
List of Portability Libraries - https://shlom.in/port-libs

If you do not like these factoids, Chuck Norris will still love you. However,
it's not going to stop him from killing you, because he doesn't let his
feelings get in the way of his day-to-day business.
    — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

_______________________________________________
Boston-pm mailing list
[email protected]
https://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to