Changeset 84 for branches/DirectWeb/UTCPServer.pas
- Timestamp:
- Dec 16, 2009, 12:46:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DirectWeb/UTCPServer.pas
r83 r84 79 79 CreateSocket; 80 80 SetLinger(True, 10); 81 WriteLn(Address + ':' + IntToStr(Port)); 81 82 Bind(Address, IntToStr(Port)); 82 If LastError <> 0 then raise Exception.Create('Socket bind error'); 83 WriteLn(LastError); 84 if LastError <> 0 then raise Exception.Create('Socket bind error'); 83 85 Listen; 84 If LastError <> 0 then raise Exception.Create('Socket listen error');86 if LastError <> 0 then raise Exception.Create('Socket listen error'); 85 87 AcceptThread := TAcceptThread.Create(True); 86 88 AcceptThread.Parent := Self;
Note:
See TracChangeset
for help on using the changeset viewer.