Home > Computers & Networking > Port Server

Port Server

June 7th, 2013

VB.Net - TCPListener started, now what?

Apologies, I'm used to VB6 winsock and haven't programmed TCP applications since. So I've declared everything, finally with the code...

server = New TcpListener(localAddr, port)
server.Start()

No errors when I run so I'm assuming it's listening. Now what? How do I make a handler for this when a client sends data?

I am not familiar with the .net TCPListener, but I'd assume you just get/read from the open io channel assigned to the server. This will then wait until something comes in on the port. Doubtless there will be options to not wait on the get, and react accordingly, and/or to set timeouts on the read from the port.

Go to MSDN and lookup the class to see what appropriate methods exist.

Most listeners are pretty similar.

Find Port Server On eBay Below:

BRAND NEW HP NC7170 Dual Port Gigabit Ethernet Server Network Adapter 313586 001
BRAND NEW HP NC7170 Dual Port Gigabit Ethernet Server Network Adapter 313586 001
$19.99
Intel Pro 1000 PF Dual Port D51931 Server Adapter 868974
Intel Pro 1000 PF Dual Port D51931 Server Adapter 868974
$34.99
New Digi 70001807 Open Box Portserver TS 4 MEI New Open Box 2 Available
New Digi 70001807 Open Box Portserver TS 4 MEI New Open Box 2 Available
$300.00
New Lantronix EDS4100 4 Port serial server Open Retail Boxed 1 Available
New Lantronix EDS4100 4 Port serial server Open Retail Boxed 1 Available
$300.00
New Digi 50000836 27 Open Box Portserver TS 4 MEI New Open Box 2 Available
New Digi 50000836 27 Open Box Portserver TS 4 MEI New Open Box 2 Available
$300.00
Digi 50000854 02 Portserver TS 16 Port Rackmount ADP 1 Available
Digi 50000854 02 Portserver TS 16 Port Rackmount ADP 1 Available
$350.00
HP 374443 001 NC380T PCIe Dual port Multifunction Gigabit Server Adapter
HP 374443 001 NC380T PCIe Dual port Multifunction Gigabit Server Adapter
$9.50
IBM 00J0003 1GB Quad Port IVE HEA 4xRJ 45 CCIN 2BC4 pSeries Server Ethernet ADAP
IBM 00J0003 1GB Quad Port IVE HEA 4xRJ 45 CCIN 2BC4 pSeries Server Ethernet ADAP
$145.99
HP ProLiant DL380 G7 SFF 2U 2x XEON HC L5640 266GHz 16 PORT HDD 24GB 2xPSU P410
HP ProLiant DL380 G7 SFF 2U 2x XEON HC L5640 266GHz 16 PORT HDD 24GB 2xPSU P410
$392.00
HP NC522SFP 468330 002 468349 001 Dual Port 10GbE Network Server Adapter NO SFPs
HP NC522SFP 468330 002 468349 001 Dual Port 10GbE Network Server Adapter NO SFPs
$76.99
HP ProLiant DL360 G7 1U 8 Port SFF 2x XEON HC X5670 293GHz 2x 146GB 10K 144GB
HP ProLiant DL360 G7 1U 8 Port SFF 2x XEON HC X5670 293GHz 2x 146GB 10K 144GB
$765.00
HP ProLiant DL160 G6 1U 6 Port SFF 2x XEON HC X5650 266GHz NO HDD 2xTRAYS 72GB
HP ProLiant DL160 G6 1U 6 Port SFF 2x XEON HC X5650 266GHz NO HDD 2xTRAYS 72GB
$376.00
HP ProLiant DL160 G6 1U 6 Port SFF 2x XEON HC X5650 266GHz NO HDD 2xTRAYS 24GB
HP ProLiant DL160 G6 1U 6 Port SFF 2x XEON HC X5650 266GHz NO HDD 2xTRAYS 24GB
$232.00
HP ProLiant DL380 G7 SFF 2U 2x XEON HC L5640 266GHz 16 PORT HDD 96GB 2xPSU P410
HP ProLiant DL380 G7 SFF 2U 2x XEON HC L5640 266GHz 16 PORT HDD 96GB 2xPSU P410
$620.00
Dell Poweredge R710 2x E5520 Xeon Quad Core 8 Port 32GB No HDD 2x Trays Perc6i
Dell Poweredge R710 2x E5520 Xeon Quad Core 8 Port 32GB No HDD 2x Trays Perc6i
$345.00
Intel EXPI9404PTLBLK PRO 1000 PT Quad Port Gigabit LP Server Adapter PCIe NIC
Intel EXPI9404PTLBLK PRO 1000 PT Quad Port Gigabit LP Server Adapter PCIe NIC
$79.00
TP LINK TL PS110U USB20 PORT FAST ETHERNET PRINT SERVER PRINTER SERVER
TP LINK TL PS110U USB20 PORT FAST ETHERNET PRINT SERVER PRINTER SERVER
$10.00
Hawking Technology 4 Port Wireless N Multifunction USB Printer and Device Server
Hawking Technology 4 Port Wireless N Multifunction USB Printer and Device Server
$80.15
Dell PowerEdge R510 2U Rack Server 12 Bay Ports 15K SAS Drives Included RAID
Dell PowerEdge R510 2U Rack Server 12 Bay Ports 15K SAS Drives Included RAID
$1,149.00
Dell PowerEdge R510 2U Rack Server 12 Bay Ports 15K SAS Drives Included RAID
Dell PowerEdge R510 2U Rack Server 12 Bay Ports 15K SAS Drives Included RAID
$1,699.00
Cross Network Gateway RoIP302M 3 PPT Port with GSM Module built in SIP server
Cross Network Gateway RoIP302M 3 PPT Port with GSM Module built in SIP server
$759.89
New Intel 82590 I350 F2 SFP Dual port Gigabit Ethernet server Adapters OEM
New Intel 82590 I350 F2 SFP Dual port Gigabit Ethernet server Adapters OEM
$83.00
NEW Intel I350 T4 PCI Express PCI E Four RJ45 Gigabit Ports Server Adapter NIC
NEW Intel I350 T4 PCI Express PCI E Four RJ45 Gigabit Ports Server Adapter NIC
$53.50
HP NC523SFP dual port 10Gb 2P PCI E Server Adapter QLE3242 593742 001 HSTNS
HP NC523SFP dual port 10Gb 2P PCI E Server Adapter QLE3242 593742 001 HSTNS
$103.21
New Dual RJ45 Ports PCI Ex4 PRO10 100 1000M Intel 82575EB E1G42ET Server Adapter
New Dual RJ45 Ports PCI Ex4 PRO10 100 1000M Intel 82575EB E1G42ET Server Adapter
$34.00
DELL BROADCOM Net Extreme BCM5709 1Gbps DUAL PORT NIC PCI E Server NETWORK CARD
DELL BROADCOM Net Extreme BCM5709 1Gbps DUAL PORT NIC PCI E Server NETWORK CARD
$32.88
INTEL CPU D49919 b Intel PRO 1000 Pt Dual Port Server Adapter
INTEL CPU D49919 b Intel PRO 1000 Pt Dual Port Server Adapter
$45.00
PERLE IOLAN DS1 1 PORT DEVICE SERVER NEW IN BOX
PERLE IOLAN DS1 1 PORT DEVICE SERVER NEW IN BOX
$100.00
LSI 9240 8i 8 port SAS SATA LSI00200 Server RAID Controller Card
LSI 9240 8i 8 port SAS SATA LSI00200 Server RAID Controller Card
$70.00
IBM 49Y4230 49Y4232 I340 T2 PCIe Dual Port Server Adapter
IBM 49Y4230 49Y4232 I340 T2 PCIe Dual Port Server Adapter
$150.00
HP NC360T 2P GBIT PCIe 412651 001 412648 B21 DUAL PORT SERVER NETWORK ADAPTER
HP NC360T 2P GBIT PCIe 412651 001 412648 B21 DUAL PORT SERVER NETWORK ADAPTER
$25.60
SOLARFLARE SFN7122F DUAL PORT 10GBE SFP+ ONLOAD SERVER ADAPTER
SOLARFLARE SFN7122F DUAL PORT 10GBE SFP+ ONLOAD SERVER ADAPTER
$699.00
Perle IOLAN SCS8C Secure Console Server 8 Port 04030900
Perle IOLAN SCS8C Secure Console Server 8 Port 04030900
$120.00
OpenText Castelle FaxPress 7000 8 port fax server 7x for Win2003
OpenText Castelle FaxPress 7000 8 port fax server 7x for Win2003
$2,399.95
Axis Communications 241Q 4 Port Blade Video Server 0209 011 NEW
Axis Communications 241Q 4 Port Blade Video Server 0209 011 NEW
$75.00
USR5461 US Robotic MaxG Wireles Router with USB printer server port
USR5461 US Robotic MaxG Wireles Router with USB printer server port
$7.49
IBM Intel Ethernet Quad Port PCI E Server Adapter 94Y5167 49Y4241 low profile
IBM Intel Ethernet Quad Port PCI E Server Adapter 94Y5167 49Y4241 low profile
$47.21
Dell PE R620 8 Port SFF 2x E5 2690 290GHz NO HDD 2xTRAYS H710 96GB 2x 1100W
Dell PE R620 8 Port SFF 2x E5 2690 290GHz NO HDD 2xTRAYS H710 96GB 2x 1100W
$1,452.00
Dell PE R620 8 Port SFF 2x E5 2690 290GHz NO HDD 2xTRAYS H710 32GB 2x 1100W
Dell PE R620 8 Port SFF 2x E5 2690 290GHz NO HDD 2xTRAYS H710 32GB 2x 1100W
$1,260.00

Recently Purchased Port Server:


4 port serial terminal amp; print server w dual ethernet amp; quad db9 rs232422485, ibm intel pro1000 pt quad port nic ethernet pcie server adapter 39y6138, dell intel pro1000 vt quad port nic ethernet pcie server adapter yt674, nob intel pro1000 pf dual port server adapter pci express x4 1000basesx , hp nc522sfp dual port 10gbe server network adapter 2ports pci express 20 x8 sf, hp 10gbe pcie dual port hba server network adapter 518001001, perle 9000310r1 iolanrack 16port 10100 ethernet terminal sds serial server , new airlink 101 amps240w 1 port wireless multifunctional printer serv, supermicro aocs2308ll8i 8 ports pcie 8gbs server raid control tq1349, avocent cyclades acs6048mdac 520572511 48 port dual ac advanced console server, intel dell 0jm42w dual port ethernet server adapter , dell r1xfc poweredge r720 quad port ethernet server adapter, lot of 2 emulex lpe12002 dualport 8 gbe pcie server adapter standard profile, hp 517691001 16port kvm server console switch 513736001 520785501, ibm 49y4232 dualport ethernet network server adapter card high profile, intel pro1000 mt quad port server adapter c32199004 pcix express pro, hp af617a server console 0x2x16 port analog switch w rack ears 513736001, dell intel dual port server nic pcie network card nc360t 0x3959 x3959, hp nc360t pcie gigabit dual port server adapter network card, silicom 760939639a six port copper gigabit ethernet pci express server adapter, intel pwla8492mt pro1000 mt pcipcix dual port server adapter, dell thgmp quad port ethernet server adapter card intel i350t4 full height brck, dlink dp301p fast ethernet parallel port print server 1 centronics port , belkin network usb 5 port hub f5l009builtin print server5port usb hub, hp 436431001 pciex4 quad port gigabit server network adapter 435506003 nc364t, intel e1g44ht i340t4 4 port pcie ethernet server adapter e69268 wo bracket, intel 82571eb gigabit dual port server adapter expi9402pt pcie network card, intel expi9402ptblk pro1000 pt 2 port pcie server network adapter high profile, intel e1g44ht i340t4 4 port pcie ethernet server adapter e69268, 2 fiber optic and a 4 port cards sun p 541210905, linksys psus4 print server for usb with 4port switch cisco no power adapter , intel pro1000 mf dual port server adapter lc fiber optic, intel i350t4 pciexpress pcie four rj45 gigabit ports server adapter, new sealed tplink single parallel port fast ethernet print server tlps110p, hp hewlett packard jetdirect 500x three port external printer print server, lantronix securelinx slc48 48 port console server switch , dell powerconnect 3548 48port managed gigabit desktop server, lantronix securelinx slc48 slc04812n03 48port console server, napatech nt20e 2port 10gb pcie server adapter rev c w2gb ram , new cisco catalyst wsx4418gb 4500 18port switch gbic server switching module, hp 436431001 nc364t pcie quad port gigabit server network adapter full profile, digi international inc portserver ts 4 hcc mei networking device 5000083640, intel ethernet server adapter 10gbps dual port pcie x520sr2 , hp nc360t dual port gigabit server network adapter 412651001 full height, trendnet tewp1ug 54mbps 80211g wireless 1port usb 20 print server newopened, intel pro1000 pt quad port gigabit ethernet server adapter expi9404ptlblk, 2x intel dual port pro1000 mt pcix gigabit server ethernet adapter pwla8492mt, silicom peg4sfpi6 quadport sfp pcie network server adapter card, dell h092p intel pro1000 vt quad port server gigabit ethernet pcie nic full hgt, dell intel pro1000 vt quad port gigabit pcie ethernet server adapter k828c, lot of 4 intel pro 1000 mt dual port pcix network server adapter c41421003, j031p 0j031p e10g42bt dell 10gb dual port ethernet server adapter, intel cpud42543 pro1000et quadport gigabit server network adapter card, digi etherlite 32port terminal server ethernet switch 5000098801 b, new lantronix ed110000201 device server eds1100 1 port secure rs232422485, new startech st1000spexd4 startech dual port gigabit pci express server network, silicom peg4bpilsdrohs 4port pcie copper gigabit ethernet server adapter, digi connectware cm32 console server 32 port terminal 5000083805, visiontek products four port usb 30 x1 pcie internal card for pcs and servers , hp 507019b21 blc7000 bladesystem chassis w 1x vc 10gb24port mod 572213001, hawking technology 4port wirelessn multifunction usb printer and device server, solarflare sfn5322f pcie x8 dual 10gbe sfp port network server adapter 10g hba, intel e10g42afda 10gb dual port server adapter af da, digi portserver ts 4 mei ts4 port server wpsupply

Categories: Computers & Networking Tags:
Comments are closed.