init commit

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-14 21:33:21 +01:00
commit dbab788e6b
27 changed files with 4001 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package handlers
import (
"fmt"
"net"
)
func HandleAsyncBuddyListRequest(conn net.Conn, requestData []byte) ([]byte, int) {
fmt.Println("[TCP] Handling AsyncBuddyListRequest")
// Return AsyncBuddyListContentRequest (516)
// Field 2: Buddies (AsyncBuddyList)
return []byte{0x12, 0x00}, 516
}
func HandleAsyncIgnoreListRequest(conn net.Conn, requestData []byte) ([]byte, int) {
fmt.Println("[TCP] Handling AsyncIgnoreListRequest")
// Return AsyncIgnoreListContentRequest (516)
// Field 2: Ignores (AsyncBuddyList)
return []byte{0x12, 0x00}, 561
}