Results 1 to 6 of 6

Thread: Packet Reading And Writing

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    1

    Packet Reading And Writing

    How can one read packets from a specific port [i.e. 3270] and then write packets directly to the port?
    Is this possible?

    The scenario is I currently have a old, old, old 3270 emulator that runs in Internet Explorer as a java app. However there is no scripting options. I want to develop some simple log on and screen scrapping scripts.

    TIA

  2. #2
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    Re: Packet Reading And Writing

    Use the winsock control.

  3. #3
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Packet Reading And Writing

    If you're trying to monitor packets going to/from a port, you'll need to use something like the WinPCap driver. There might be something already done in VB without a driver, but I don't know of any.

    You cannot monitor data going to/from ports with the Winsock control unless you're monitoring the data in one of your own client/server programs.

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Packet Reading And Writing

    Just find a scriptable TN3270 client.

    This topic has nothing at all to do with "packets," and 3270 Telnet clients do not use "port 3270." Geeze.

  5. #5
    Lively Member
    Join Date
    Oct 2006
    Posts
    81

    Re: Packet Reading And Writing

    if your program should work in the same way packet sniffers works, then you would need to use winsock api sockets, there are some articles about that, i remember i ran over some long time ago, try to google!

  6. #6
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Packet Reading And Writing

    Theres a fantastic packet sniffer on PSCode.com it only uses winsock API nothing else, by the way I'm pretty sure its impossible to write packets to a connection that you didnt start in your vb app (even if you monitor the port).
    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width