SYNAPSE - Synchronous TCP/IP Library for Delphi
Other related information can be found at http://www.mlp.cz/space/gebauerl/synapse/
Unit: SynaUtil
- Misc. functions:
- Function timezone:string
Return time offset of current time from UTC time. (example: '+0200', '-0800')
- Function Rfc822DateTime(t:TDateTime):String
Return current time in format defined in RFC-822. Usefull for SMTP message, but others protocol is used this time format too. Result is with timezone specification. For year is used four digits to break Y2K bug. (Example 'Fri, 15 Oct 1999 21:14:56 +0200')
- Function CodeInt(Value:integer):string
Return two characters, whitch ordinal values represents value in byte format. (High-endian)
- Function IsIP(Value:string):Boolean
Return TRUE, if Value if IP name (may be only part of IP address).
- Function ReverseIP(Value:string):string
Result is same IP, but in reverse order.
- Procedure Dump (Buffer:string;DumpFile:string)
Dump binnary buffer stored in string to file with DumpFile filename.
- Function MibToId(mib:string):string
Convert string representation of MIB (i.e. '1.3.5.8.4.6.7.6.4') to binnary form.
- Function IdToMib(id:string):string
Convert binnary form of MIB to string representation of MIB (i.e. '1.3.5.8.4.6.7.6.4').
- Function IntMibToStr(int:string):string
Convert binnary form of integer number in SNMP packet to string representation of number.